<%@ Page Language="C#" MasterPageFile="~/miniweb/MasterPage.master" AutoEventWireup="true"
    CodeFile="Contact.aspx.cs" Inherits="miniweb_Contact" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

    <script type="text/javascript" src="js/formfieldlimiter.js"></script>

    <div id="content">
        <div class="title_home">
            <div class="titleLeft">
                <a href="#">Contact</a></div>
            <div class="search">
                <table cellpadding="0" cellspacing="0">
                    <tr>
                        <td>
                            <input class="bg_input" type="text" value="Search our product" /></td>
                        <td>
                            <input type="image" src="images/ico_search.gif" /></td>
                    </tr>
                </table>
            </div>
        </div>
        <div class="titlePages">
            <strong>Contact Infomation</strong></div>
        <table class="companyProfile" border="0">
            <tr>
                <td class="titleProfile" colspan="2">
                    Contact Person:
                    <asp:Literal ID="ltrContactPersion" runat="server"></asp:Literal></td>
            </tr>
            <tr>
                <td width="30%" align="right">
                    Contact Person:
                </td>
                <td width="70%">
                    <strong>
                        <asp:Literal ID="ltrCOntactName" runat="server"></asp:Literal></strong>
                </td>
            </tr>
            <tr>
                <td align="right">
                    Company Name:
                </td>
                <td>
                    <p>
                        <strong>
                            <asp:Literal ID="ltrCompanyName" runat="server"></asp:Literal></strong>
                    </p>
                </td>
            </tr>
            <tr>
                <td align="right">
                    Address:
                </td>
                <td>
                    <strong>
                        <asp:Literal ID="ltrAddress" runat="server"></asp:Literal></strong>
                </td>
            </tr>
            <tr>
                <td align="right">
                    Country/Region:
                </td>
                <td>
                    <strong>
                        <asp:Literal ID="ltrCountry" runat="server"></asp:Literal></strong>
                </td>
            </tr>
            <tr>
                <td align="right">
                    Zip/postal code:</td>
                <td>
                    <strong>
                        <asp:Literal ID="ltrZip" runat="server"></asp:Literal></strong></td>
            </tr>
            <tr>
                <td align="right">
                    Telephone:
                </td>
                <td>
                    <strong>
                        <asp:Literal ID="ltrTel" runat="server"></asp:Literal></strong>
                </td>
            </tr>
            <tr>
                <td align="right">
                    Fax:
                </td>
                <td>
                    <strong>
                        <asp:Literal ID="ltrFax" runat="server"></asp:Literal>
                    </strong>
                </td>
            </tr>
            <tr>
                <td align="right">
                    Website:
                </td>
                <td>
                    <strong>
                        <asp:Literal ID="ltrWebsite" runat="server"></asp:Literal></strong></td>
            </tr>
        </table>
        <div class="titleSupplier">
            <img src="images/txt_email_supplier.gif" /></div>
        <table width="100%" border="0">
            <tr>
                <td width="20%" align="right" valign="top">
                    Form:</td>
                <td width="80%" valign="top" align="left" colspan="2">
                    <input class="txtForm" id="txtEmailFrom" runat="server" type="text" />&nbsp;<span
                        class="noteRed">(*)</span>&nbsp;<span class="txtAgray">Enter email or Member ID</span></td>
            </tr>
            <tr>
                <td valign="top" align="right">
                    Subject:</td>
                <td valign="top" align="left" colspan="2">
                    <input class="txtSubject" id="txtSubject" runat="server" type="text" />&nbsp;<span
                        class="noteRed">(*)</span></td>
            </tr>
            <tr>
                <td valign="top" align="center">
                    <div class="avarSubblier">
                        <img src="images/avar_subblier_108x95.jpg" alt="" /></div>
                </td>
                <td valign="top" align="left" colspan="2">
                    <%-- <textarea class="textSupplier"></textarea>--%>
                    <textarea name="johndoe" runat="server" id="johndoe" class="textSupplier"></textarea>
                  
                    &nbsp; <span class="noteRed">(*)</span></td>
            </tr>
            <tr>
                <td align="center">
                    <p>
                        <img src="images/ico_online.gif" alt="" align="absmiddle" />&nbsp;Mr.PEIXIONG JIANG</p>
                </td>
                <td align="left" width="60%">
                    <p class="txtAgray">
                         <div id="john-status">
                    </div></p>
                </td>
                <td align="right" width="20%">
                   <asp:Button ID="btnSend" CssClass="btnSend marR" runat="server" Text="Send" OnClick="btnSend_Click" />
                </td>
            </tr>
        </table>
    </div>

    <script type="text/javascript">
 


//Example 2:

fieldlimiter.setup({
	thefield: document.getElementById("<%=johndoe.ClientID%>"), //reference to form field
	maxlength: 3000,
	statusids: ["john-status"], //id(s) of divs to output characters limit. If non, set to empty array [].
	onkeypress:function(maxlength, curlength){ //onkeypress event handler
		//define custom event actions here if desired
	}
})

    </script>

</asp:Content>
